package com.weishuang.account.manager.convert;

import com.weishuang.account.entity.Permission;
import com.weishuang.account.entity.Role;
import com.weishuang.model.account.dto.PermissionDTO;
import com.weishuang.model.account.dto.RoleDTO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface Permission2PermissionDTOCovert extends BaseConverter<Permission, PermissionDTO> {

    @Override
    PermissionDTO convertTarget2Source(Permission permission);

    @Override
    List<PermissionDTO> covertTargetList2SourceList(List<Permission> list);

}
